// pair.go
package main

type DrPair struct {
	DrAbstractObject
	elem_A IObject
	elem_B IObject
}

func (self *DrPair) AsString() string {
	return self.elem_A.AsString() + ":" + self.elem_B.AsString()
}
func NewPair(obj1 IObject, obj2 IObject) *DrPair {
	pair := new(DrPair)
	pair.elem_A = obj1
	pair.elem_B = obj2
	pair.Type = TypePair
	return pair
}
